<?php


namespace app\common\business;
use app\common\model\mysql\AdminUser;
class Demo1
{
    public function getAllUserList($limit = 2){
        $adminUser = new AdminUser();
        $result = $adminUser->getAllUserList($limit);
        if(empty($result)){
            return show(config("status.success"),"数据为空");
        }
        $status = config("test");
        foreach ($result as $key => $item){
            $result[$key]["status"] =$status[$item["status"]]  ?? "其他";
        }
        return $result;

    }
}